package com.hnzq.cloud.model;


public class Result<T> {
    private Integer code;
    private String message;
    private T data;

    public static Result newInstance(){
        Result re = new Result();
        re.setCode(200);
        re.setMessage("访问成功");
        return re;
    }


    public Integer getCode() {
        return code;
    }

    public Result setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public Result setMessage(String message) {
        this.message = message;
        return this;
    }

    public T getData() {
        return data;
    }

    public Result setData(T data) {
        this.data = data;
        return this;
    }
}
